package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class HelloController {


    @RequestMapping("/hello")
    public String index(){
        return "hello";
    }
    @RequestMapping("/test")
    public Map<String,String> test(){
        Map<String,String> map=new HashMap<String, String>();
        map.put("username","wust123456");
        map.put("password","123456");
        return map;
    }
}